# *-* coding: utf-8 *-*
print 'koro.modules.home'
from koro.core.model import ModuleInfo
from koro.modules.home import context,ui,model,__version__
#from koro.modules.home import ui
from koro.modules.home.ui import page
#from koro.modules.home import model


info=ModuleInfo(dependency=('agenda','anagrafiche'),
                description='Pagina iniziale con il riepilogo di alcune attività rilevanti del giorno. ',
                version=__version__.VERSION_STRING,
                weight=251)

def id_map():    
    return {ui.ID_HOME_PAGE:context.HomeContext}

def context_map():    
    return {context.HomeContext:(page.HomePage,(),{})}

def name_map():    
    return {'HOME':context.HomeContext,
            'LAVAGNA':context.LavagnaContext}

def or_mapping(mapper,relation,metadata,Table):    
    
    mapper(model.Lavagna,Table('lavagna',metadata,autoload=True))

def menu(menubar):
    ui.do_menu(menubar)

def option_view():
    return None